define(function(require, exports, module) {
	"require:nomunge,exports:nomunge,module:nomunge";
	
    var self = exports;
    var utils = require('mokit/utils');
    var service = require('./service');
	var User = require("./User");

    //添加收藏
    self.addCollection = function(scId,colType,callback){
        service.addCollection({scId:scId,colType:colType}, function(rs, err) {
            if (err && callback) return callback(err.message || err);
            if (rs.success) {
                if (callback) callback();
            } else {
                rs = rs || {};
                var msg = rs.msg || 'unknow error';
                if (callback) callback(msg);
            }
        });    	
    };

});